#pragma once

//
//  对象适配器
//

class CAdaptor2 : public CUsb
{
private:
    CTypeC* lpTypeC;

public:
    CAdaptor2()
    {
        lpTypeC = new CTypeC();
    }

    ~CAdaptor2()
    {
        if (lpTypeC)
            delete lpTypeC;
    }

public:
    virtual void ConnectToDevice()
    {
        if (lpTypeC)
            lpTypeC->ConnectToDevice();
    }
};
